package com.github.pig.admin.service.tsjy;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.github.pig.admin.model.tsjy.SuggestRecord;
import com.github.pig.admin.util.AjaxJson;

import java.util.Map;

/**
 * <p>
 * 投诉建议记录表 服务类
 * </p>
 *
 * @author lxm
 * @since 2018-06-22
 */
public interface ISuggestRecordService extends IService<SuggestRecord> {

    SuggestRecord getSuggestRecordById(String suggestRecordId);

    /**
     * 投诉/建议评价接口
     * @param suggestRecord
     * @return
     */
    AjaxJson addEstimate(SuggestRecord suggestRecord);

    /**
     * 投诉/建议查询接口
     * @return
     */
    AjaxJson querySuggest(String id);

    /**
     * 分页查询投诉建议信息
     *
     * @return 分页对象
     */
    Page<SuggestRecord> suggestPage(Map<String, Object> params);
}
